package com.lagou.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-email")
@RequestMapping("/api")
public interface EmailServiceFeignClient {

    @RequestMapping("/email/{email}/{code}")
    boolean sendEmail(@PathVariable String email, @PathVariable String code);

}
